<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('黑名单管理历史')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
    <th:block th:include="include :: select2-css"/>
</head>
<body class="gray-bg">
<div class="ui-layout-center">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="user-form">
                    <input type="hidden" id="ComPidorDepTid" name="ComPidorDepTid">
                    <div class="select-list">
                        <ul>
                            <li>
                                姓名：<input type="text" name="name"/>
                            </li>
                            <li>
                                工号：<input type="text" name="badge"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">

            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<th:block th:include="include :: ztree-js"/>

<script th:inline="javascript">
    var prefix = ctx + "entryManage/BlackListManage";
    $(function () {
        var panehHidden = false;
        if ($(this).width() < 800) {
            panehHidden = true;
        }
        $('body').layout({initClosed: panehHidden, west__size: 350});
        queryData();
    });

    function queryData() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var badge = {field: 'badge', title: '工号'};
        var name = {field: 'name', title: '姓名'};
        var compName = {field: 'compName', title: '公司'};
        var depName = {field: 'depName', title: '部门'};
        var jobName = {field: 'jobName', title: '岗位'};
        var JoinDate = {field: 'JoinDate', title: '入职日期'};
        var JoinTypeTitle = {field: 'JoinTypeTitle', title: '入职渠道'};
        var ApplyDate = {field: 'ApplyDate', title: '申请离职日期'};
        var LeaveDate = {field: 'LeaveDate', title: '离职日期'};
        var LeaveTypeTitle = {field: 'LeaveTypeTitle', title: '离职类型'};
        var LeaveReasonTitle = {field: 'LeaveReasonTitle', title: '离职原因'};
        var lzyy = {field: 'lzyy', title: '离职详因'};
        var isBlackList = {field: 'isBlackList', title: '黑名单'};
        var Remark = {field: 'Remark', title: '拉黑原因'};
        var RegByName = {field: 'RegByName', title: '登记人'};
        var RegDate = {field: 'RegDate', title: '登记时间'};
        var Initialized = {field: 'Initialized', title: '确认?'};
        var InitializedByName = {field: 'InitializedByName', title: '确认人'};
        var InitializedTime = {field: 'InitializedTime', title: '确认时间'};
        var Submit = {field: 'Submit', title: '审核?'};
        var SubmitByName = {field: 'SubmitByName', title: '审核人'};
        var SubmitTime = {field: 'SubmitTime', title: '审核时间'};
        var Closed = {field: 'Closed', title: '封存?'};
        var ClosedByName = {field: 'ClosedByName', title: '封存人'};
        var ClosedTime = {field: 'ClosedTime', title: '封存时间'};
        columns.push(id,badge,name,compName,depName,jobName,JoinDate,JoinTypeTitle,ApplyDate,LeaveDate);
        columns.push(LeaveTypeTitle,LeaveReasonTitle,lzyy,isBlackList,Remark,RegByName,RegDate,Initialized);
        columns.push(InitializedByName,InitializedTime,Submit,SubmitByName,SubmitTime,Closed,ClosedByName,ClosedTime);

        var options = {
            code: "id",
            uniqueId: "id",
            url: prefix + "/listHistory",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            sortOrder: "desc",
            modalName: "黑名单管理历史",
            columns: columns
        };
        $.table.init(options);
    }


</script>
</body>
</html>